package com.jdjw.modules.migrantworkssign.mapper;

import com.jdjw.modules.migrantworkssign.entity.MigrantWorksSign;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdjw.modules.migrantworkssign.entity.MigrantWorksSignVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 务工人员库 Mapper 接口
 * </p>
 *
 * @author fq
 * @since 2021-07-27
 */
public interface MigrantWorksSignMapper extends BaseMapper<MigrantWorksSign> {

    List<MigrantWorksSign> queryAll(@Param("vo") MigrantWorksSignVo migrantWorksSignVo);

    Map<String,Object> selectCodeAndAid(String deptName);

    Boolean edit(@Param("sqlEdit") String sqlEdit);


    Integer queryPersonCount(@Param("param") Map<String, Object> param);
    /**
     * 查询务工人员
     * @param param
     * @return
     */
    List<Map<String,Object>> queryPerson(@Param("param") Map<String, Object> param);

    /**
     * 修改务工者状态为已在务工中
     * @param param
     */
    void updateWorkerStatus(@Param("param") String[] param);

    /**
     * 修改务工已经添加人员完毕
     * @param param
     */
    void updateWorksIsComplete(@Param("param") Map<String,Object> param);

}
